package com.world.common.pojo;

/**
 * Created by gang on 2016/8/1.
 */
public class ApiResult {
    private Integer status;//status(0:成功;-1:失败)
    private String message;//(若失败则返回原因，否则空)
    private Object data;//data(业务数据)

    public ApiResult() {
    }

    public ApiResult(Integer status) {
        this.status = status;
    }

    public ApiResult(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public ApiResult(Integer status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
